    <%@ page language="java" contentType="text/html; charset=utf-8"%>   
    <html>
    <head>  
    <title>Upload</title>  
   
    <!--装载文件-->  
    <link href="css/default.css" rel="stylesheet" type="text/css" />  
    <link href="css/uploadify.css" rel="stylesheet" type="text/css" />  
    <script type="text/javascript" src="script/jquery-1.3.2.min.js"></script>  
    <script type="text/javascript" src="script/swfobject.js"></script>  
    <script type="text/javascript" src="script/jquery.uploadify.v2.1.0.min.js"></script>  
      
    <!--ready事件-->  
    <script type="text/javascript">  
        function aaa() {
             $("#uploadify").uploadify({
                'uploader' : 'script/uploadify.swf',  
                'script' : 'aaa/Upload',//后台处理的请求  
                'cancelImg' : 'images/cancel.png',  
                'folder' : 'uploads',//您想将文件保存到的路径  
                'queueID' : 'fileQueue',//与下面的id对应  
                'queueSizeLimit' : 5,  
                'fileDesc' : '*.jpg',  
                'fileExt' : '*.jpg;*.png', //控制可上传文件的扩展名，启用本项时需同时声明fileDesc  
                'auto' : false,  
                'multi' : false,
                'sizeLimit' : 209715200,
                'simUploadLimit' : 1,  
                'buttonText' : 'BROWSE',
                'displayData': 'speed',
                'onComplete': function(event, queueID, fileObj, response, data) {
                },
                'onAllComplete': function(event, queueID, fileObj, response, data) {
                }
            });  
             
        }  
    </script>  
    </head>  
      
    <body onload="aaa()">  
        <div id="fileQueue" style="display: true;"></div>
        <input type="file" name="uploadify" id="uploadify" />  
        <p>  
            <a href="javascript:jQuery('#uploadify').uploadifyUpload()">Upload</a>   
            <a href="javascript:jQuery('#uploadify').uploadifyClearQueue()">Cancel</a>  
        </p>  
    </body>  
    </html>  